package com.itheima.d1_arrays;

import java.util.Arrays;

public class Student /*implements Comparable<Student>*/{
    public static void main(String[] args) {
//        Student[] students = new Student[4];
//        students[0] = new Student("蜘蛛精", 169.5, 23);
//        students[1] = new Student("紫霞", 162.8, 26);
//        students[2] = new Student("紫霞", 163.8, 26);
//        students[3] = new Student("至尊宝", 167.5, 24);
//        System.out.println(Arrays.toString(students));
    }
    private String name;
    private double height;
    private int age;
    public Student() {
    }

    public Student(String name, double height, int age) {
        this.name = name;
        this.height = height;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", height=" + height +
                ", age=" + age +
                '}';
    }

//    @Override
//    public int compareTo(Student o) {
//        return this.age-o.age;
//    }
}
